import { HTTP_INTERCEPTORS } from "@angular/common/http";
import { NoopInterceptor } from "./noop-interceptor";
import { AuthInterceptor } from "./auth-interceptor";
import { SessionInterceptor } from "./session-interceptor";
import { UrlFillInterceptor } from "./url-fill-interceptor";
import { CachingInterceptor } from "./caching-interceptor";
import { EnsureHttpsInterceptor } from "./ensure-https-interceptor";

export const httpInterceptorProviders = [
  { provide: HTTP_INTERCEPTORS, useClass: NoopInterceptor, multi: true },
  { provide: HTTP_INTERCEPTORS, useClass: CachingInterceptor, multi: true },
  { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
  { provide: HTTP_INTERCEPTORS, useClass: UrlFillInterceptor, multi: true },
  // { provide: HTTP_INTERCEPTORS, useClass: EnsureHttpsInterceptor, multi: true },
  { provide: HTTP_INTERCEPTORS, useClass: SessionInterceptor, multi: true }
];
